package com.itheima.service.mongo;

import com.itheima.domain.mongo.Movement;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

public interface MovementService {
    void save(Movement movement);

    //查询个人动态
    PageBeanVo findMyMovementByPage(Long userId, Integer pageNum, Integer pageSize);

    //查询好友动态
    PageBeanVo findFriendMovementByPage(Long userId, Integer pageNum, Integer pageSize);

    //查询推荐动态
    PageBeanVo findRecommendMovementByPage(Long userId, Integer pageNum, Integer pageSize);

    Movement findById(ObjectId id);

    //查询动态列表(根据用户id或者动态状态)
    PageBeanVo findByCondition4Page(Long userId,Integer state,Integer pageNum,Integer pageSize);

    void update(Movement movement);
}
